package com.tang.service.admin.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tang.common.utils.excel.annotation.ExcelEnum;
import com.tang.common.utils.excel.converter.EnumConverter;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import com.tang.framework.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "字典值")
@TableName(value = "sys_dict_value")
public class SysDictValue extends BaseEntity<SysDictValue>{


    @Schema(description = "字典类型id")
    @ExcelProperty(value = "字典类型id")
    @TableField(value = "dict_type_id")
    private Long dictTypeId;


    @Schema(description = "标签")
    @ExcelProperty(value = "标签")
    @TableField(value = "label")
    private String label;


    @Schema(description = "值")
    @ExcelProperty(value = "值")
    @TableField(value = "value")
    private String value;


    @Schema(description = "值类型")
    @ExcelEnum
    @TableField(value = "type")
    private String type;


    @Schema(description = "状态")
    @TableField(value = "status")
    private Boolean status;


    @Schema(description = "颜色")
    @TableField(value = "`color`")
    private String color;

    @Schema(description = "描述")
    @TableField(value = "`desc`")
    private String desc;

}

